package Leetcode;

import java.util.Arrays;

public class Leetcode_62 {
    public static int maximumWealth(int[][] accounts) {
        int maxWealth = Integer.MIN_VALUE;
        for (int[] account : accounts) {
            maxWealth = Math.max(maxWealth, Arrays.stream(account).sum());
        }
        return maxWealth;
    }
    public static void main(String[] args) {
        int[][] arr1 = {{1,2,3},{1,2,3}};
        System.out.println(maximumWealth(arr1));
    }
}
